package com.woniuxy.hotel.user.mapper;

import com.woniuxy.hotel.user.pojo.Customer;
import com.woniuxy.hotel.user.pojo.User;
import org.apache.ibatis.annotations.Insert;

/**
 * @Auther: desk-----xuzhiliang
 * @Date: 2019/7/29 19:19
 * @Description:
 */
public interface TestMapper {
    /**
    *@Description 用户注册
    *@Param  * @param null
    *@Return 
    *@Author desk-----xuzhiliang
    *@Date 2019/7/29
    *@Time 19:51
    */
    @Insert("insert into user(account,phone,password) values(#{account},#{phone},#{password})")
    public void intsertUser(User user);
    @Insert("insert into customer(name,identify,pic,createDate,uid) values(#{name},#{identify},#{pic},#{createDate},#{user.uid})")
    public void intsertCustome(Customer customer);
}
